﻿using WMSUIMVC.Aubit;

namespace WMSUIMVC.DTO.OutBount
{
    public class AddOutShip: BaseDTO
    {
        /// <summary>
        /// 出库id
        /// </summary>

        public int OutShipId { get; set; }
        /// <summary>
        /// 出库单号
        /// </summary>
        public string? OutShipCode { get; set; }
        /// <summary>
        /// 出库单类型
        /// </summary>
        public int? OutShipType { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? OrderNumber { get; set; }
        /// <summary>
        /// 客户id
        /// </summary>

        public int? ClientId { get; set; }
        /// <summary>
        /// 客户编号
        /// </summary>
        public string? ClientCode { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string? ClientName { get; set; }
        /// <summary>
        /// 客户联系人
        /// </summary>
        public string? Ccontact { get; set; }
        /// <summary>
        /// 客户联系方式
        /// </summary>
        public string? VendorPhone { get; set; }

        /// <summary>
        /// 制单人
        /// </summary>
        public string? MakePerson { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? MarkTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? ORremark { get; set; }
        /// <summary>
        /// 销售id
        /// </summary>
        public int? SalesId { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_id { get; set; }

        public List<OutProductDTO> OPlist { get; set; }
    }

    public class OutProductDTO
    {
        /// <summary>
        /// 出库产品id
        /// </summary>

        public int OutProuductId { get; set; }
        /// <summary>
        /// 出库id
        /// </summary>
        public int? OutShipId { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductsID { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? OutPrice { get; set; }
        /// <summary>
        /// 出库数
        /// </summary>
        public int? OutProuductNum { get; set; }
        /// <summary>
        /// 库位
        /// </summary>
        public string? Binlocation { get; set; }
        
        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_id { get; set; }
    }
}
